<?php sleep(0.5);?>
            <?php
            $imgSeguir = array('src' => 'img/remove.png', 'alt' => 'Remover', 'title' => 'Deixar de Acompanhar Perfil');
            $imgMsg = array('src' => 'img/email.png', 'alt' => 'Mensagem', 'title' => 'Enviar Mensagem');
            if(!isset($print)){ 
                $count =  count($usuarioSeguido);
                for($i = 0; $count > $i; $i++):
                    $usuario    = element('usuarioPerfil', $usuarioSeguido[$i]);
                    $usuario = $usuario[0];
                    $idsDicas   = element('idsDicas', $usuarioSeguido[$i]);
                    $dicas       = element('dicas', $usuarioSeguido[$i]);
                    if($idsDicas != array())
                    {
                        foreach ($dicas as $key => $value):
                            $imgConf = array('src' => 'upload/thumbs/' . $usuario->avatar, 'alt' => $usuario->username, 'title' => $usuario->username, 'width' => '60', 'height' => '60');
                            ?>
                            <div id="dica">
                                <div class="avatar">
                                    <?php if($usuario->avatar) { ?>
                                        <?php echo anchor('usuario/profile/' . $usuario->idUsuario, img($imgConf)) ; ?>
                                    <?php }else{?>
                                        <?php echo anchor('usuario/profile/' . $usuario->idUsuario, img(array('src' => 'img/default_avatar.gif', 'alt' => $usuario->username, 'title' => $usuario->username, 'width' => '60', 'height' => '60'))); ?>
                                    <?php } ?>
                            </div>

                            <div class="descricao">
                                <h5 class="name"><?php echo anchor('usuario/timelineVisitanteView/' . $usuario->idUsuario, $usuario->username, array("class" => "name")) ; ?> :: Ha <?php echo $value['tempo'] ?></h5>
                                <p><?php echo anchor('/dica/index/' . $value['dica']->idDica . '/' . $usuario->idUsuario, $value['dica']->descricao); ?></p>
                            </div>
                                
                            <div class="acoes">    
                                
                                <div class="compartilhar">
                                    <?php $url = 'dica/Legal/' . $value['dica']->idDica . '/' . $usuario->idUsuario;  $icon = "16"?>
                                    <ul>
                                        <li><a id="Legal<?php echo $value['dica']->idDica?>" href="javascript:void[0];" onclick="abrirPag('<?php echo base_url(); ?>index.php/dica/legal/<?php echo $value['dica']->idDica . '/' . $usuario->idUsuario; ?>', 'Legal<?php echo $value['dica']->idDica; ?>');" ><?php echo img(array('src' => 'img/icon-acoes/like.png','alt' => $value['countLegal'], 'width' => $icon , 'height' => $icon ,'title' => $value['countLegal'])); ?></a></li>
                                        <li><a id="Vou<?php echo $value['dica']->idDica?>" href="javascript:void[0];" onclick="abrirPag('<?php echo base_url(); ?>index.php/dica/euVou/<?php echo $value['dica']->idDica . '/' . $usuario->idUsuario; ?>', 'Vou<?php echo $value['dica']->idDica; ?>');" ><?php echo img(array('src' => 'img/icon-acoes/go.png','alt' => $value['countVou'], 'width' => $icon , 'height' => $icon, 'title' => $value['countVou'])); ?></a></li>
                                        <li><?php echo anchor('dica/mural/' . $value['dica']->idDica . '/' . $usuario->idUsuario, img(array('src' => 'img/icon-acoes/mural.png','alt' => "Mural", 'width' => $icon, 'height' => $icon, 'title' => "Mural"))) ?></li>
                                        <li><a href="javascript: void [0]" onclick="<?php echo "javascript:toggle('" . $value['dica']->idDica . "')";?>"><?php echo img(array('src' => 'img/icon-acoes/share.png','alt' => "Compartilhar", 'width' => $icon , 'height' => $icon, 'title' => "Compartilhar")); ?></a></li>
                                    </ul>
                                </div>
                            </div>
                                
                            <div id="<?php echo $value['dica']->idDica;?>" class="redes_sociais" >
                                <?php $imgFacebook  = array('src' => 'img/facebook.png', 'alt' => 'Facebook', 'title' => 'Facebook', 'width' => '30', 'height' => '30'); 
                                       $imgTwitter = array('src' => 'img/twitter.png', 'alt' => 'Twitter', 'title' => 'Twitter', 'width' => '30', 'height' => '30');
                                       $url = urlencode(base_url() . "index.php/dica/index/" . $value['dica']->idDica . "/" . $usuario->idUsuario);?>
                                <a href="javascript: void[0]" onclick="window.open('http://www.facebook.com/share.php?u=<?php echo $url?>','ventanacompartir', 'toolbar=0, status=0, width=650, height=450');"><?php echo img($imgFacebook); ?></a>
                                <a href="javascript: void[0]" onclick="window.open('http://twitter.com/share?text=<?php echo substr($value['dica']->descricao, 0, 99); ?> on Hintweek','ventanacompartir', 'toolbar=0, status=0, width=650, height=450');" class="twitter-share-text" data-url="<?php echo $url; ?>"><?php echo img($imgTwitter);?></a>
                            </div>
                                    
                        </div>
                        <?php
                        endforeach;
                    }
                endfor;
            }
            else
            {
               echo $print;
            }
            ?>
